#ifndef DOCUMENTDIALOG_H
#define DOCUMENTDIALOG_H
#include <QDialog>
#include "database.h"
#include "document.h"

namespace Ui {
    class DocumentDialog;
}

class DocumentDialog : public QDialog
{
    Q_OBJECT

public:
    explicit DocumentDialog(Document* doc,Database* db, QWidget *parent);
    ~DocumentDialog();

private:
    Document* document;
    Database* database;
    QPushButton* addButton;
    Ui::DocumentDialog *ui;

private slots:
    void tableChanged(int r, int c);
    void tableClicked(int r, int c);
    void addRow();
    void buttonClicked();

};


#endif // DOCUMENTDIALOG_H
